/*
*********************************************************************************************************
*                                              EXAMPLE CODE
*
*                          (c) Copyright 2003-2013; Micrium, Inc.; Weston, FL
*
*               All rights reserved.  Protected by international copyright laws.
*               Knowledge of the source code may NOT be used to develop a
*similar product. Please help us continue to provide the Embedded community with
*the finest software available.  Your honesty is greatly appreciated.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                      APPLICATION CONFIGURATION
*
*                                     ST Microelectronics STM32
*                                              on the
*
*                                     Micrium uC-Eval-STM32F107
*                                        Evaluation Board
*
* Filename      : app_cfg.h
* Version       : V1.00
* Programmer(s) : EHS
*********************************************************************************************************
*/

#ifndef __APP_CFG_H__
#define __APP_CFG_H__

/*
*********************************************************************************************************
*                                       MODULE ENABLE / DISABLE
*********************************************************************************************************
*/

#define LED0_STK_SIZE 38u
#define LED1_STK_SIZE 38u
#define KEY_SCAN_STK_SIZE 44u
#define LCD_STK_SIZE 128u

#define APP_CFG_SERIAL_EN DEF_ENABLED

#define BSP_CFG_LED_SPI2_EN                                                    \
  DEF_ENABLED /* Enable/disable LEDs on SPI port.                     */
#define BSP_CFG_LED_PIOC_EN                                                    \
  DEF_ENABLED /* Enable/disable PIOC LEDs.                            */

/*
*********************************************************************************************************
*                                              TASKS NAMES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                            TASK PRIORITIES
*********************************************************************************************************
*/

#define LED0_TASK_PRIO 8u
#define LED1_TASK_PRIO 7u
#define KEY_SCAN_TASK_PRIO 6u
#define LCD_TASK_PRIO 9u

#define APP_TASK_START_PRIO 4u

#define OS_TASK_TMR_PRIO (OS_LOWEST_PRIO - 2)

/*
*********************************************************************************************************
*                                            TASK STACK SIZES
*                             Size of the task stacks (# of OS_STK entries)
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                    BSP CONFIGURATION: RS-232
*********************************************************************************************************
*/

#endif
